import request from '@/plugin/axios'
import util from '@/libs/util.js'

const  getWarningTable = (data)=>request({
        url: '/Error/List',
        method: 'post',
        data:data
    });

const  modType  = () =>request({
        // api/v1/Collector/modeType
        url: '/Collector/modeType',
        method: 'post',
        data:{
            UserId:util.cookies.get('uuid')
        }
    });

const  LogType = () =>request({
    // api/v1/Collector/modeType
    url: '/Error/Code',
    method: 'post',
    data:{
        UserId:util.cookies.get('uuid')
    }
});
const  ProcessFlag = () =>request({
    url: '/Error/Count',
    method: 'post',
    data:{
        UserId:util.cookies.get('uuid')
    }
});
const  getWarningMessage = () =>request({
    url: '/Error/Detail',
    method: 'post',
    data:{
        UserId:util.cookies.get('uuid')
    }
});
export {
    getWarningTable,
    modType,
    LogType,
    ProcessFlag,
    getWarningMessage,
}

